// 定义注册页的接口请求
import axios from '../https/axios'

import { detailParamsType } from '@/types/paramsType'
// 1.验证手机号是否被注册过
export function docheckphone(data: any) {
    return axios({
        method: 'post',
        url: '/api/user/docheckphone',
        data: data
    })
}
// 2.发送验证码接口
export function doSend(data: any) {
    return axios({
        method: 'post',
        url: '/api/user/dosendmsgcode',
        data: data
    })
}
// 3.验证验证码接口
export function doCheck(data: any) {
    return axios({
        method: 'post',
        url: '/api/user/docheckcode',
        data: data
    })
}
// 4.注册接口
export function doFinishRegister(data: any) {
    return axios({
        method: 'post',
        url: '/api/user/dofinishregister',
        data: data
    })
}